/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren;

import io.renren.common.utils.Constant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class RenrenApplication {

	public static void main(String[] args) {
		if(System.getProperty("os.name").toLowerCase().contains("win")){
			// windows
			Constant.Zip.PATH.setName("e:\\hanzhiZip\\");
			Constant.Zip.YSB.setName("e:\\");
			Constant.ZipStiff.PATH.setName("e:\\hanzhiZipStiff\\");
			Constant.ZipStiff.YSB.setName("e:\\");

			Constant.ZipCopybookResource.PATH.setName("e:\\copybookResourceZip\\");
			Constant.ZipCalligraphyResource.PATH.setName("e:\\calligraphyResourceZip\\");
		}else {
			// linux
			Constant.Zip.PATH.setName("/tmp/hanzhiZip/");
			Constant.Zip.YSB.setName("/tmp/");
			Constant.ZipStiff.PATH.setName("/tmp/hanzhiZipStiff/");
			Constant.ZipStiff.YSB.setName("/tmp/");

			Constant.ZipCopybookResource.PATH.setName("/tmp/copybookResourceZip/");
			Constant.ZipCalligraphyResource.PATH.setName("/tmp/calligraphyResourceZip/");
		}
		SpringApplication.run(RenrenApplication.class, args);
	}

}